package book;

/**
 * @program: 11.22
 * @description:
 * @author: 李鑫月
 * @create: 2021-11-22 21:04
 **/
public class BookList {
    Book[] books=new Book[100];
    int usedsize;

    public BookList() {
        books[0]=new Book("三国演义","罗贯中",24,"小说");
        books[1]=new Book("西游记","吴承恩",64,"小说");
        books[2]=new Book("水浒传","施耐庵",56,"小说");
        this.usedsize =3;
    }

    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }
    public Book getposbook(int pos){
        return books[pos];
    }
    public void setBook(Book book,int pos){

        books[pos]=book;

    }
}
